CPP = g++
OFLAG = -o
CFLAG = -c

.PHONY: clean all

all:test

#SrcFiles = $(wildcard *.h)
ObjFiles = $(patsubst %.cpp,%.o,$(wildcard *.cpp))

test : $(ObjFiles) $(SrcFiles)
	$(CPP) $(OFLAG) $@ $(ObjFiles) 
#$(SrcFiles)

%.o : %.cpp
	$(CPP) $(CFLAG) $< $(OFLAG) $@ 

mrun:
	./test
clean:
	-@rm -f *.o

